import { EnumManager } from "@/utils/enumManager";

export const benefitTypes = new EnumManager({
  10: "基金线上",
  20: "药诊卡30元",
  30: "药诊卡50元",
  40: "药诊卡100",
  50: "折扣商城1号店",
  60: "折扣商城2号店",
  70: "折扣商城3号店",
  80: "基金线下",
  90: "线下引流折扣95",
  100: "线下引流折扣92",
  110: "线下引流折扣9",
});

export const payTypes = new EnumManager({
  0: "未支付",
  1: "微信支付",
});

const rightOrderStatusEnum = Object.freeze({
  PENDING_PAY: 10,
  PENDING_SHIP: 30,
  PENDING_RECEIPT: 40,
  COMPLETED: 50,
  PICKED_UP: 60,
});

export const rightOrderStatusTag = Object.freeze({
  [rightOrderStatusEnum.PENDING_PAY]: {
    type: "warning",
  },
  [rightOrderStatusEnum.PENDING_SHIP]: {
    type: "",
  },
  [rightOrderStatusEnum.PENDING_RECEIPT]: {
    color: "#6419d4",
  },
  [rightOrderStatusEnum.COMPLETED]: {
    type: "success",
  },
  [rightOrderStatusEnum.PICKED_UP]: {
    type: "info",
  },
});

export const rightOrderStatus = new EnumManager({
  [rightOrderStatusEnum.PENDING_PAY]: "待支付",
  [rightOrderStatusEnum.PENDING_SHIP]: "待发货",
  [rightOrderStatusEnum.PENDING_RECEIPT]: "待收货",
  [rightOrderStatusEnum.COMPLETED]: "已完成",
  [rightOrderStatusEnum.PICKED_UP]: "已取",
});
